package com.dpmc.service;

import java.util.Date;
import java.util.HashMap;

import javax.naming.InitialContext;
import javax.naming.NamingException;

import com.dpmc.entity.TB_YHZH;
import com.svc.OpenEJBsvc;

public class test_SVC_SHGL {

	/**
	 * @param args
	 * @throws NamingException 
	 */
	public static void main(String[] args) throws NamingException {
		 InitialContext ctx = OpenEJBsvc.openEJB_InitialContext();   
		 SVC_SHGLLocal svc = (SVC_SHGLLocal) ctx.lookup("SVC_SHGLLocal");
		 HashMap yhzh =new HashMap();
		 yhzh.put("KHMC", "1");
		 yhzh.put("SWFZR", "1");
		 yhzh.put("SSO_USID_", "40288071328fb7e201328fc25009000a");
		 yhzh.put("SSO_OPTIME_", new Date());
		 yhzh.put("SWFZRDH", "1");
		 yhzh.put("GLID", "40286b81328107fc0132810e8f9f002a");
		 yhzh.put("SH", "1");
		 yhzh.put("KHYH", "1");
		 yhzh.put("ZH", "1");
		 yhzh.put("SWFZRSJ", "1"); 
		 yhzh.put("OPID", "4028807c3411664b013411664be10000"); 
		 System.out.println(svc.queryForResultSize("Q_SHGL_WORKFLOW.queryForResultSize", yhzh));
	}

}
